<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/BlogAdmin/layui/css/layui.css" media="all">
    <!-- editormd-->
    <link rel="stylesheet" href="/static/editormd/css/editormd.css"/>
</head>
<body>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">博客新增</div>
                    <div class="layui-card-body"style="height: 600px;">
<!--                        <div style="float: right" class="layui-form-item">-->
<!--                            <input type="submit" name="submit" value="发布文章" style="padding: 5px;"-->
<!--                                   class="layui-btn layui-btn-lg layui-btn-radius layui-btn-warm">-->
<!--                        </div>-->
                        <div class="layui-form-item">
                            <button class="layui-btn" lay-submit="" lay-filter="publishArticle">提交</button>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">文章标题</label>
                            <div class="layui-input-block">
                                <input id="articleTitle" type="text" name="title" lay-verify="title" autocomplete="off"
                                       placeholder="请输入文章标题"
                                       class="layui-input">
                            </div>
                        </div>
                        <!--橙色分割线-->
                        <hr class="layui-bg-orange">
                        <div class="layui-form-item">
                            <label class="layui-form-label">文章分类名</label>
                            <div class="layui-input-block">
                                <input id="articleCategory" type="text" name=category lay-verify=category
                                       autocomplete="off" placeholder="请输入文章分类名"
                                       class="layui-input">
                                <div  id="articleCategory1">
                                <span><i class="fa fa-home fa-fw"></i>123</span>
                                </div>
                            </div>
                        </div>
                        <!--蓝色分割线-->
                        <hr class="layui-bg-blue">
                        <div class="layui-form-item">
                            <label class="layui-form-label">文章标签名</label>
                            <div class="layui-input-block">
                                <input id="articletags" type="text" name="tags" lay-verify="tags" autocomplete="off"
                                       placeholder="请输入文章标签名"
                                       class="layui-input">
                                <div  id="articleTags1">
                                    <span><i class="fa fa-home fa-fw"></i>123</span>
                                </div>
                            </div>
                        </div>
                        <!--蓝色分割线-->
                        <hr class="layui-bg-red">
                        <div class="layui-form-item">
                            <label class="layui-form-label">文章封面图片地址</label>
                            <div class="layui-input-block">
                                <input id="articleimg" type="text" name="image" lay-verify="image" autocomplete="off"
                                       placeholder="请输入文章封面图片地址"
                                       class="layui-input">
                            </div>
                        </div>
                        <!--蓝色分割线-->
                        <hr class="layui-bg-red">
                        <div class="layui-form-item">
                            <label class="layui-form-label">文章描述</label>
                            <div class="layui-input-block">
                                <input id="articledescription" type="text" name="description" lay-verify="description"
                                       autocomplete="off" placeholder="请输入文章的描述"
                                       class="layui-input">
                            </div>
                        </div>
                        <!--蓝色分割线-->
                        <hr class="layui-bg-red">
                        <div class="layui-form-item">
                            <label class="layui-form-label">是否转载</label>
                            <div class="layui-input-block">
                                <input id="" type="text" name="reference" lay-verify="reference"
                                       autocomplete="off" placeholder="请输入文章的描述"
                                       class="layui-input">
                                <span>原创填 1 </span>
                                <span>转载填 2 </span>
                            </div>
                        </div>

                        <!--存放内容-->
                        <div id="test-editor" class="editormd">
                            <textarea style="display: none;" name="content"></textarea>
                        </div>
                        <div class="site-demo-button" style="margin-top: 20px;">
                            <button class="layui-btn site-demo-layedit" data-type="content">获取编辑器内容</button>
                            <button class="layui-btn site-demo-layedit" data-type="text">获取编辑器纯文本内容</button>
                            <button class="layui-btn site-demo-layedit" data-type="selection">获取编辑器选中内容</button>
                        </div>
                    </div>
            </div>
        </div>
    </div>
</div>
<script src="/BlogAdmin/layui/layui.js"></script>
<script src="/LayuiBlog/js/jquery-min.js"></script>
<script src="/static/editormd/editormd.min.js"></script>
<script src="/BlogAdmin/js/blogAdd.js"></script>
</body>
</html>